Optimal. Leaf size=74 \[ \frac{\sqrt{\frac{\pi }{2}} \sin (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )}{\sqrt{b}}-\frac{\sqrt{\frac{\pi }{2}} \cos (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )}{\sqrt{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0323861, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3384, 3354, 3352, 3351} \[ \frac{\sqrt{\frac{\pi }{2}} \sin (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )}{\sqrt{b}}-\frac{\sqrt{\frac{\pi }{2}} \cos (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )}{\sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3384
Rule 3354
Rule 3352
Rule 3351
Rubi steps
\begin{align*} \int \frac{\cos \left (a+\frac{b}{x^2}\right )}{x^2} \, dx &=-\operatorname{Subst}\left (\int \cos \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=-\left (\cos (a) \operatorname{Subst}\left (\int \cos \left (b x^2\right ) \, dx,x,\frac{1}{x}\right )\right )+\sin (a) \operatorname{Subst}\left (\int \sin \left (b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=-\frac{\sqrt{\frac{\pi }{2}} \cos (a) C\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )}{\sqrt{b}}+\frac{\sqrt{\frac{\pi }{2}} S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right ) \sin (a)}{\sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.109059, size = 62, normalized size = 0.84 \[ -\frac{\sqrt{\frac{\pi }{2}} \left (\cos (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )-\sin (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )\right )}{\sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.035, size = 48, normalized size = 0.7 \begin{align*} -{\frac{\sqrt{2}\sqrt{\pi }}{2} \left ( \cos \left ( a \right ){\it FresnelC} \left ({\frac{\sqrt{2}}{\sqrt{\pi }x}\sqrt{b}} \right ) -\sin \left ( a \right ){\it FresnelS} \left ({\frac{\sqrt{2}}{\sqrt{\pi }x}\sqrt{b}} \right ) \right ){\frac{1}{\sqrt{b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.37842, size = 495, normalized size = 6.69 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60756, size = 186, normalized size = 2.51 \begin{align*} -\frac{\sqrt{2} \pi \sqrt{\frac{b}{\pi }} \cos \left (a\right ) \operatorname{C}\left (\frac{\sqrt{2} \sqrt{\frac{b}{\pi }}}{x}\right ) - \sqrt{2} \pi \sqrt{\frac{b}{\pi }} \operatorname{S}\left (\frac{\sqrt{2} \sqrt{\frac{b}{\pi }}}{x}\right ) \sin \left (a\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (a + \frac{b}{x^{2}} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (a + \frac{b}{x^{2}}\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]